<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>${pageTitle}</title>
	<script type="text/javascript" src="${templatePath}/js/prototype.js"></script>
	<script type="text/javascript" src="${templatePath}/js/calendarview.js"></script>
	<script type="text/javascript" src="${templatePath}/js/autocomplete.js"></script>
	<script type="text/javascript" src="${templatePath}/js/tiny_mce/tiny_mce.js"></script>
	<script type="text/javascript" src="${templatePath}js/prototype.js"></script>
	<script type="text/javascript">
	<!--
		tinyMCE.init({
		    mode : "textareas",
		    theme : "advanced"
		});
	//-->
	</script>

	<link rel="stylesheet" href="${templatePath}/css/autocomplete.css" type="text/css" />
	<link rel="stylesheet" href="${templatePath}/css/calendarview.css" type="text/css" />
	<link rel="stylesheet" href="${templatePath}/css/main.css" type="text/css" />
	<script type="text/javascript" src="${templatePath}/js/main.js"></script>
</head>
<body>
<div id="content">
<!-- content begins -->
<div id="main">
	<div id="right">
        <div id="logo">         
            <img src="${templatePath}/images/banner.jpg" alt="first" width="700"/>
            <!-- Computer Science Team -->
        </div>
    	<div id="menu">
			<ul>
				<li id="button1"><a href="${scriptPath}">Trang chủ</a></li>
				<li id="button2"><a href="${scriptPath}?action=test.list" title="">Đề thi</a></li>
				<li id="button3"><a href="${scriptPath}?action=teststruct.list" title="">Cấu trúc đề</a></li>
				<li id="button4"><a href="${scriptPath}?action=question.list" title="">Câu hỏi</a></li>
				<li id="button5"><a href="?action=user.list" title="Danh sách thành viên" target="_self">Thành viên</a></li>
				<li id="button6"><a href="${scriptPath}?action=aboutus" title="">About Us</a></li>
			</ul>
		</div>
    	<div id="righttop"></div>
        	<h4>Giới thiệu về website trắc nghiệm</h4>
        	<div class="rightbg">
        	<!-- ########################################## -->
        	<!--  một sô thông tin về website trắc nghiệm-->
        	<!-- ########################################## -->
        	<p>Website được xây dựng bởi 4 thành viên lớp Khoa học máy tính K52</p>
        	<p> Giáo viên hướng dẫn : ThS Nguyễn Thị Thu Trang</p>
            </div>
             	<div class="rightcenter"></div>
            	    <h4>Nội dung chính</h4>
					<div class="rightbg">
						<c:catch var="ex">
							<jsp:include page="actions/${param.action}.jsp"></jsp:include>
						</c:catch>
						<c:if test="${!(empty ex)}">
	   						<h3 style="color:red">${ex}</h3>
						</c:if>
					<!-- ########################################## -->
        			<!--  nội dung các action được đặt ở đây -->
        			<!-- ########################################## -->
							
					</div>			
				
				</div>
	<div id="left">		
		<div id="header"></div>
		<div id="lefttop"></div>
 
        <!-- ########################################## -->
        <!--  nội dung các modules ở đây -->
        <!-- ########################################## -->
    
	    <c:forEach items="${modules['left']}" var="item">
	       <c:set var="module" scope="request" value="${item}"></c:set>
	        <h3>${module.title}</h3>
            <div class="leftbg">
                <jsp:include page="modules/${module.page}"></jsp:include>
            </div>
			<div class="leftcenter"></div>
	    </c:forEach>
		
		</div>
    	<div id="mainbot"></div>
		<!--content ends -->
	<!--footer begins -->
	</div>

	<div id="footer">
		<p><a href="https://code.google.com/p/tracnghiem-csforce/">tracnghiem-csforce version 1.0</a>. 
		Copyright © 2010. Powered by CS Force</p>
	</div>
</div>
<!-- footer ends-->
</body>
</html>